﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DBModel;

namespace Testing
{
    class Program
    {

        static void Main(string[] args)
        {
            //List<CurriculumVitae> cvs = CurriculumVitaeDB.GetCurriculumVitaesByFreeTextSearchWord("truck");

            //foreach (var cv in cvs)
            //{
            //    Console.WriteLine(cv.Applicant.FirstName);
            //    Console.WriteLine(cv);
            //}
            //Console.ReadLine();

            //Publisher publisher = new Publisher
            //{
            //    UserName = "Lonestarr",
            //    Password = "1234",
            //    Email = "revtorparen@gmail.com",
            //    City = "Helsingborg",
            //    Country = "Sweden",
            //    Street = "Wallisgatan",
            //    PostalCode = "25657",
            //    Phone = "0733703540",
            //    IsDeleted = false,
            //    EmployerName = "Jimmy Revtorp"
            //};

            //DB.Context.Users.Add(publisher);

            //DB.Save();

            //SuperAdmin sa = new SuperAdmin
            //{
            //    UserName = "Lonestarrsa",
            //    Password = "1234",
            //    IsDeleted = false,

            //};
            //Applicant applicant = new Applicant
            //{
            //    UserName = "Lonestarr",
            //    Password = "1234",
            //    Email = "revtorparen@gmail.com",
            //    City = "Helsingborg",
            //    Country = "Sweden",
            //    FirstName = "Jimmy",
            //    LastName = "Revtorp",
            //    Street = "Wallisgatan",
            //    PostalCode = "25657",
            //    Phone = "0733703540",
            //    IsDeleted = false,

            //};


            //DB.Context.Users.Add(applicant);
            //DB.Context.SaveChanges();

            //foreach (User user in DB.Context.Users.ToList())
            //{
            //        Console.WriteLine(user);
            //}

            //Console.WriteLine();
            //foreach (CurriculumVitae curriculumVitae in DB.Context.CurriculumVitaes)
            //{
            //    Console.WriteLine(curriculumVitae);
            //    Console.WriteLine();
            //    Console.WriteLine();
            //}
            //Console.ReadKey();

            foreach (WorkAdvertisement wa in DB.Context.WorkAdvertisements)
            {
                Console.WriteLine(wa.WorkDescription);
            }
            Console.ReadLine();
        
        }
    }
}
